package com.ceres.oauth.dao;

import com.ceres.login.pojo.Admin;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface AdminMapper extends Mapper<Admin> {
    @Select("select rid from t_user_role where uid=(select id from t_user where username=#{username}) ")
    public List<Integer> findRoleByUsername(String username);
    @Update("update t_user set status='0' where username=#{username}")
    public void editAdminStatus(String username);

}
